package com.itheima.service;

import com.itheima.pojo.Menu;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findUserByUsername(String username);

    List<Menu> getMenuData(String username);
    public void add(User user, Integer[] roleIds);
    public PageResult findPage(QueryPageBean queryPageBean);
    public List<Role> findAll();
    public void edit(User user, Integer[] roleIds);
    public User findById(Integer id);
    public Integer[] findroleIdsByUserId(Integer id);
    public void delete(Integer id);
}
